package cc.rengu.oltp.service.model;

import cc.rengu.oltp.service.common.constant.AppParamConstant;
import cc.rengu.oltp.service.common.enums.TransStatusEnum;

import java.io.Serializable;

/**
 * 业务处理响应类
 * Created by 王成 on 2017/6/27.
 */
public class BizResponse<T> implements Serializable {
    private String rspSysId;
    private String respCode;
    private String respDesc;
    private TransStatusEnum transStatus;
    private T result;

    public BizResponse() {
    }

    public BizResponse(String respCode, String respDesc) {
        this.rspSysId = AppParamConstant.SYS_ID;
        this.respCode = respCode;
        this.respDesc = respDesc;
    }

    public BizResponse(String rspSysId, String respCode, String respDesc) {
        this.rspSysId = rspSysId;
        this.respCode = respCode;
        this.respDesc = respDesc;
    }

    public BizResponse(String rspSysId, String respCode, String respDesc, T result) {
        this.rspSysId = rspSysId;
        this.respCode = respCode;
        this.respDesc = respDesc;
        this.result = result;
    }

    public String getRspSysId() {
        return rspSysId;
    }

    public void setRspSysId(String rspSysId) {
        this.rspSysId = rspSysId;
    }

    public String getRespCode() {
        return respCode;
    }

    public void setRespCode(String respCode) {
        this.respCode = respCode;
    }

    public String getRespDesc() {
        return respDesc;
    }

    public void setRespDesc(String respDesc) {
        this.respDesc = respDesc;
    }

    public TransStatusEnum getTransStatus() {
        return transStatus;
    }

    public void setTransStatus(TransStatusEnum transStatus) {
        this.transStatus = transStatus;
    }

    public T getResult() {
        return result;
    }

    public void setResult(T result) {
        this.result = result;
    }
}
